package com.jk.controller;


import com.jk.entity.UserEntity;
import com.jk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserService userService;



    @RequestMapping("updatePass")
    public void updatePass(HttpServletRequest request,String pass){
        userService.updatePass(request,pass);
    }

    @RequestMapping("queryUserById")
    public UserEntity queryUserById(HttpServletRequest request){
        return userService.queryUserById(request);
    }


    @RequestMapping("updUserPass")
    public void updUserPass(HttpServletRequest request,String pass){
        userService.updUserPass(request,pass);
    }

}
